home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 6
/
QRZ Ham Radio Callsign Database - Volume 6.iso
/
mac
/
files
/
finland
/
makefile.txt
< prev
next >
Wrap
Makefile
|
1992-06-15
|
961b
|
31 lines
# This Makefile creates an updated host-file for Finnish
# Radio Amateur TCP/IP network.
#
# Created by Markku Toijala (mto@nic.funet.fi) June 13th, 1990.
# Modified by Matti Aarnio (mea@nic.funet.fi) Jan 5th, 1991
#
PARTS = header oh0 oh1 oh2 oh3 oh4 oh5 oh6 oh7 oh8 oh9
all: domain.oh hosts.oh
domain.oh: $(PARTS) Makefile
/bin/rm -f domain.oh
/bin/rm -f *~
/bin/cat $(PARTS) | /usr/ucb/expand > domain.oh
-/etc/chown mea domain.oh
/bin/chgrp ftp domain.oh
/bin/chmod 664 domain.oh
Mail -s "Fresh OH-IP domain data" ham-oh-ip-numbers <domain.oh
hosts.oh: domain.oh Makefile
/bin/rm -f hosts.oh
/bin/rm -f *~
/bin/cat domain.oh | \
/p/bin/perl -n -a -e \
'if (/^[;]/) {printf "#%s",substr($$_,1);} elsif ($$F[2] eq "A") { printf "%s\t%s\t%s.ampr.org\n",$$F[3],$$F[0],$$F[0];}' \
> hosts.oh
-/etc/chown mea hosts.oh
/bin/chgrp ftp hosts.oh
/bin/chmod 664 hosts.oh
Mail -s "Fresh OH-IP number list" ham-oh-ip-numbers <hosts.oh